package com.mall.product.feign;

import com.common.dto.SkuReductionDTO;
import com.common.dto.SpuBoundsDTO;
import com.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name = "mall-coupon")
public interface CouponFeign {
    @PostMapping("/coupon/skufullreduction/saveinfo")
    public R saveFullReductionInfo(@RequestBody SkuReductionDTO dto);
    @RequestMapping("/coupon/spubounds/saveSpuBounds")
        //@RequiresPermissions("coupon:spubounds:save")
    R saveSpuBounds(@RequestBody SpuBoundsDTO  spuBounds);
}
